package com.zan.twolevel;

/**
 * @Author Zan
 * @Date 2023/11/30 14:47
 * @Description : 链表定义
 */
public class ListNode {

    public int data;

    public ListNode next;

    public ListNode() {
        this.next = null;
    }

    public ListNode(int data) {
        this.data = data;
        this.next = null;
    }

    @Override
    public String toString() {
        return "ListNode{" +
                "data=" + data +
                ", next=" + next +
                '}';
    }
}
